import { http } from '@/utils/http/axios';

import axios from './../myAxios'

export async function getTableListAboutLabFix(params) {

    // console.log(params)
    const res = await axios.get("/repairApplication/get/LabAdmin", {
        params: {
            ...params
        }
    })

    return res.data.result
}

export async function updateLabFixSate(params) {

    console.log(params)

    const res = await axios.post("/repairApplication/update", {
        ...params
    })

    if(res.data.code == 200) {
        window['$message'].success("结束维修成功");
    } else {
        window['$message'].error(res.data.message);
    }

    return res.data.result
}